var weekDayLabels = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
/**当前时间*/
var now = new Date();
var year=now.getFullYear();
var month=now.getMonth()+1;
var day=now.getDate();
var currentime = year+"年"+month+"月"+day+"日 "+weekDayLabels[now.getDay()];
document.getElementById('current_time').innerHTML = currentime;
/**计时器*/
function startTime() {
	var today=new Date()
	var h=today.getHours()
	var m=today.getMinutes()
	var s=today.getSeconds()
	m=checkTime(m)
	s=checkTime(s)
	var timer = h+":"+m+":"+s;
	document.getElementById('timer').innerHTML=h+":"+m+":"+s;
	t=setTimeout('startTime()',500)
}
function checkTime(i) {
	if (i<10) {i="0" + i}
	return i
}
startTime();